﻿using System;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace RedSand.Site.Models
{
    public class ServiceInfo
    {
        [Key]
        [HiddenInput(DisplayValue = false)]
        public int ServiceID { get; set; }

        [Display(Name = "Title")]
        public string Title { get; set; }

        [Display(Name = "Alias")]
        [RegularExpression(@"[a-zA-Z0-9_-]*")]
        [Required]
        public string Alias { get; set; }

        [Display(Name = "Description")]
        public string Description { get; set; }

        [Display(Name = "Content")]
        public string Content { get; set; }

        [Display(Name = "Status")]
        public byte? Status { get; set; }
    }
}
